class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users, {:force => true, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8'}) do |t|
      t.column :account_id,           :integer, :null => false
      t.column :nickname,             :string,  :null => false
      t.column :sex,                  :integer, :default => 0,  :null => false
      t.column :is_freeze,            :integer, :default => 0,  :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
